<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
<script src="js/react.js"></script>
<script src="js/react-dom.js"></script>
<script src="js/browser.min.js"></script>
<div id="eg"></div>
<script type="text/babel">
//直接在html页面转译jsx
ReactDOM.render(
<div>
<select defaultValue={["1","2"]} multiple="true">
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
<option>6</option>
<option>7</option>
<option>8</option>
</select>
</div>,
document.getElementById("eg")
);
</script>
</body>
</html>
